import os
import yaml


# 工程根目录
dirPath = os.getcwd()
# 报告路径
reportPath = os.path.join(dirPath, "report")
# 数据路径
dataPath = os.path.join(dirPath, "data")


# 获取YAML里面的数据，并转成字典格式
def setYAML(ymlFile):
    with open(ymlFile, "r", encoding="utf8") as f:
        return yaml.safe_load(f.read())
